package com.lml.jdk8.test01;

/**
 * @author Administrator
 * @date 2020/2/26 14:13
 * Description:
 */
public interface MyInterface {
    /**
     * Test
     */
    String testMethod(int num1, int num2);
}

class Demo {
    public static void main(String[] args) {
        //利用Lambda表达式: 创建接口实现类的对象
        MyInterface mc = (x, y) -> "这是Lambda表达式实现方法的返回值!";
        String str = mc.testMethod(12, 24);
        System.out.println(str);
    }
}